package com.zhuang.designpattern.singleton;

/**
 * description: Effective Java作者推荐的枚举单例例(线程安全)
 * date: 2022/9/14 18:45
 * author: Zhuang
 * version: 1.0
 */
public class Singleton_07 {
    public static void main(String[] args) {

        Singleton07.INSTANCE.test();
    }
}

enum Singleton07 {
    INSTANCE;

    public void test() {
        System.out.println("hi~");
    }
}
